#!/bin/bash

# the sed command '=' prints lines number followed by the line content from the input-file  

# - print all line numbers:
sed '=' ./test_employee.txt
echo -e '\n'

# output in the form of :
# line-content
# line-number of the line above 

# - print line numbers only for lines 1,2 and 3
sed '1,3 =' ./test_employee.txt
echo -e '\n'

# output in the from of : 
# line-number of the line next 
# line-content
# ...
# rest-of-content


# - print the line number only for those lines that contain the keyword.
sed '/Jane/ =' ./test_employee.txt
echo -e '\n'


